package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.TempleAnswerSetTask.TempleAnswerSetRequest;
import com.smiier.skin.net.TempleAnswerSetTask.TempleAnswerSetResponse;
import com.smiier.skin.net.entity.Answer;
import com.smiier.skin.util.GlobalSettings;

/**
 * 创建/修改模板
 * 
 * @author 杨文华
 * 
 */
public class TempleAnswerSetTask extends
		NetTask<TempleAnswerSetRequest, TempleAnswerSetResponse> {

	public static class TempleAnswerSetRequest extends ORequest {
		public String token;
		public ArrayList<String> Symptom;
		public int TreatMentsCount;
		public String Malady;
		public String Title;
		public String appname = Constant.APP_NAME;
	}

	public static class TempleAnswerSetResponse extends OResponse {
		public Answer Res;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Temple.Answer.Set";
		mRequestMethod = METHOD_GET;
	}
}
